package test;

import org.apache.shiro.crypto.hash.Md5Hash;
import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:application-context.xml"})
public class MD5 {
    @Test
    public void index1(){
        Md5Hash md5_1 = new Md5Hash("123");
        System.out.println(md5_1);
        Md5Hash md5_2 = new Md5Hash("123", "admin");
        System.out.println(md5_2);
        Md5Hash md5_4 = new Md5Hash("123456", "admin", 1024);
        System.out.println("md5_4=="+md5_4);
        Md5Hash md5_5 = new Md5Hash("123456", "test", 1024);
        System.out.println("md5_5=="+md5_5);
        Md5Hash md5_6 = new Md5Hash("123456", "zuidiama", 1024);
        System.out.println("md5_6=="+md5_6);
        Md5Hash md5_7 = new Md5Hash("123456", "test3", 1024);
        System.out.println("md5_7=="+md5_7);
    }
}
